package com.wjh.kt_live.config;

import com.wjh.kt_live.utils.MTCloud;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * Wang_Junhong
 * 2022/7/20
 * 文件描述：
 */

@Configuration
@ComponentScan("com.wjh")
@MapperScan("com.wjh.kt_live.mapper")
@EnableFeignClients("com.wjh")
public class MTCloudConfig {

    @Autowired
    private MTCloudAccountConfig mtCloudAccountConfig;

    @Bean
    public MTCloud mtCloudClient(){
        return new MTCloud(mtCloudAccountConfig.getOpenId(),mtCloudAccountConfig.getOpenToken());
    }



}
